<!--
  -    Copyright (c) 2018-2025, hycloud All rights reserved.
  -
  - Redistribution and use in source and binary forms, with or without
  - modification, are permitted provided that the following conditions are met:
  -
  - Redistributions of source code must retain the above copyright notice,
  - this list of conditions and the following disclaimer.
  - Redistributions in binary form must reproduce the above copyright
  - notice, this list of conditions and the following disclaimer in the
  - documentation and/or other materials provided with the distribution.
  - Neither the name of the pig4cloud.com developer nor the names of its
  - contributors may be used to endorse or promote products derived from
  - this software without specific prior written permission.
  - Author: hycloud
  -->
<template>
    <div class="execution">
        <basic-container>
            <avue-crud ref="crud"
                       :page.sync="page"
                       :data="tableData"
                       :permission="permissionList"
                       :table-loading="tableLoading"
                       :option="tableOption"
                       @on-load="getList"
                       @search-change="searchChange"
                       @refresh-change="refreshChange"
                       @size-change="sizeChange"
                       @current-change="currentChange">
            </avue-crud>
        </basic-container>
    </div>
</template>

<script>
    import RenderForm from '@/components/table-design/newRender'
    import addView from '@/mixins/addView'
    import {mapGetters} from 'vuex'

    export default {
        components: { RenderForm},
        mixins: [addView],
        name: 'asset_allocationone_bill',
        data() {
            return {
                formObj: {
                    code: 'asset_allocationone_bill',
                    title: '',
                    flag: 'start',
                    bizData: {}
                },
                bizId: '',
                unitId: '',
                unitName: '',
                validityDate: '',
                option: {},
                option1: {},
                modal: false,
                modal1: false,
                modal2: false,
                modal3: false,
                searchForm: {},
                tableData: [{
                      title: '办公用品模块申请',
                      applicant: '1539',
                      ApplicationDepartment: '1489',
                      contactInformation: '6',
                      assetType: '44',
                      reason: ''
                    },{
                      title: '公务车模块申请',
                      applicant: '1685',
                      ApplicationDepartment: '1596',
                      contactInformation: '7',
                      assetType: '82',
                      reason: ''
                    },{
                      title: '物业管理模块申请',
                      applicant: '2987',
                      ApplicationDepartment: '2760',
                      contactInformation: '20',
                      assetType: '207',
                      reason: ''
                    },
                    {
                      title: '公有住房模块申请',
                      applicant: '49',
                      ApplicationDepartment: '45',
                      contactInformation: '3',
                      assetType: '1',
                      reason: ''
                    },{
                      title: '药品模块申请',
                      applicant: '4133',
                      ApplicationDepartment: '4065',
                      contactInformation: '9',
                      assetType: '9',
                      reason: ''
                    },{
                      title: '理疗预约',
                      applicant: '692',
                      ApplicationDepartment: '686',
                      contactInformation: '8',
                      assetType: '0',
                      reason: ''
                    },{
                      title: '理发预约',
                      applicant: '9702',
                      ApplicationDepartment: '9603',
                      contactInformation: '39',
                      assetType: '60',
                      reason: ''
                    },{
                      title: '综合申请',
                      applicant: '309',
                      ApplicationDepartment: '289',
                      contactInformation: '10',
                      assetType: '10',
                      reason: ''
                    },{
                      title: '意见建议申请',
                      applicant: '2',
                      ApplicationDepartment: '1',
                      contactInformation: '0',
                      assetType: '1',
                      reason: ''
                    }],
                page: {
                    total: 0, // 总页数
                    currentPage: 1, // 当前页数
                    pageSize: 20 // 每页显示多少条
                },
                tableLoading: false,
                tableOption: {
                    "title":"智慧后勤使用情况（2023年8月份）",
                    "fit":true,
                    "searchShowBtn":false,
                    "refreshBtn":false,
                    "columnBtn":false,
                    "border": true,
                    "stripe": true,
                    "menuAlign": "center",
                    "align": "center",
                    "dialogClickModal": false,
                    "searchMenuSpan": 6,
                    "menu":false,
                    "column": [
                        {
                        "type": "input",
                        "label": "",
                        "prop": "title",
                        width: 389,
                        search: true,
                    },	 	 {
                        "type": "input",
                        "label": "总申请量",
                        "prop": "applicant",
                        searchLabelWidth: 150,
                        width: 360,
                        search: true,
                    },	
                    {
                        "type": "input",
                        "label": "已办结",
                        "prop": "ApplicationDepartment",
                        searchLabelWidth: 150,
                        width: 360,
                        search: true,
                    },	
                    {
                        "type": "input",
                        "label": "审批中",
                        "prop": "contactInformation",
                        searchLabelWidth: 150,
                        width: 360,
                        search: true,
                    },	
                    {
                        "type": "input",
                        "label": "已作废",
                        "prop": "assetType",
                        searchLabelWidth: 150,
                        width: 360,
                        search: true,
                    }]
                }
            }
        },
        computed: {
            ...mapGetters(['permissions', 'tagList']),
            permissionList() {
                return {
                    addBtn: false,
                    delBtn: true,
                    editBtn: true
                };
            }
        },
        methods: {
        }
    }
</script>


<style lang="scss">
    .el-radio {
    color: #000000;
}
</style>
